<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <base href="http://localhost:8080/fan/">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>秒杀页面</title>
    <link rel="icon" href="https://zhangxu-1023.oss-cn-nanjing.aliyuncs.com/images/logo/minilogo.png">
    <link rel="stylesheet" href="layui/css/layui.css">
    <link rel="stylesheet" href="css/details/details_header.css">
    <link rel="stylesheet" href="css/secondkill/secondkill.css">
</head>
<body>
<div class="header">
    <div class="top-nav ">
        <div class="layui-main top-main layui-row">
            <div class="layui-col-xs4">
                <span>&nbsp</span>
            </div>
            <div class="layui-col-xs4">
                <span>&nbsp</span>
            </div>
            <div class="layui-col-xs4">
                <ul class="layui-nav" lay-filter="">
                    <li class="layui-nav-item" ><a href="customer/user_details" class="title" th:text="${cusName}">登录/注册</a></li>
                    <li class="layui-nav-item" ><a href="#" class="title">帮助中心</a></li>
                    <li class="layui-nav-item">
                        <a href="javascript:;" class="title">我的饭团</a>
                        <dl class="layui-nav-child"> <!-- 二级菜单 -->
                            <dd><a href="customer/getAllOrder?status=3&pageNum=1">订单中心</a></dd>
                            <dd><a href="customer/getAllCoupon?status=1&pageNum=1">我的优惠券</a></dd>
                            <dd><a href="customer/getShopCollect">我的收藏</a></dd>
                        </dl>
                    </li>

                </ul>
            </div>
        </div>
    </div>
    <div class="layui-row header-tip">
        <!--      logo      -->
        <div class="layui-col-xs3 logo-input">
            <a href="shop/shopsift/1" title="饭团网" class="logo-img">
                <img src="https://zhangxu-1023.oss-cn-nanjing.aliyuncs.com/images/logo/mylogo.png"  width="200" height="72">
            </a>
        </div>
        <!--    搜索    -->
        <div class="layui-col-xs6 search-box">
            <form class="layui-form layui-form-pane" action="">
                <div class="layui-form-item searchbox-input">
                    <div class="layui-input-block" style="margin-left: 10px">
                        <input style="border: 2px solid rgb(255,107,55);width: 80%;display: block;float: left" type="text" name="title" autocomplete="off"
                               placeholder="点此进入美食猩球" class="layui-input" id="es_input">
                        <div class="layui-btn-container" style="display: block;float: left">
                            <button type="button" class="layui-btn layui-btn-sm layui-btn-radius layui-btn-danger search-btn" id="es_btn">去觅食</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<div class="layui-main">
    <!--      seckill title      -->
    <div class="layui-row layui-col-space1 s-title">
        <div class="layui-col-md3">
            <div class="s-title1">
                <a href="">
                    <div class="title1-satr">
                        正在秒杀
                    </div>
                </a>
            </div>
        </div>
        <div class="layui-col-md3">
            <div class="s-title2">
                <a href="">
                    <div class="title2">
                        22:00
                    </div>
                </a>
            </div>
        </div>
        <div class="layui-col-md3">
            <div class="s-title3">
                <a href="">
                    <div class="title3">
                        明日06:00
                    </div>
                </a>
            </div>
        </div>
        <div class="layui-col-md3">
            <div class="s-title4">
                <a href="">
                    <div class="title4">
                        明日08:00
                    </div>
                </a>
            </div>
        </div>
    </div>
    <!--  秒杀商品区  -->
    <div class="layui-row">
        <div class="layui-col-xs3 box" th:each="skpro:${skPro}">
            <div class="layui-row commodity">
                <div class="layui-col-xs12">
                    <ul>
                        <li class="comm">
                            <div class="comm-pic">
                                <img th:src="${skpro.foodMainImg}" alt="">
                            </div>
                            <div class="comm-msg">
                                <div class="info">
                                    <a href="" th:text="${skpro.foodName}"></a>
                                </div>
                                <div class="price">
                                    <div class="money">
                                        <span>￥</span>
                                    </div>
                                    <div class="new-price">
                                        <span th:text="${skpro.secondKillPrice}"></span>
                                    </div>
                                    <div class="old-price">
                                        <span th:text="'￥'+${skpro.foodPrice}"></span>
                                    </div>
                                    <a class="s-but" th:href="'getSecondOrderDetails?secondId='+${skpro.secondKillId}">
                                        <span>立即抢购</span>
                                    </a>
                                </div>
                                <div class="s-percent">
                                    <span th:text="'库存'+${skpro.secondKillStock}">已售70%</span>
                                </div>
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</div>

<iframe align="center" width="100%" height="560px" src="details/details_bottom.html"
        frameborder="no" border="0" marginwidth="0" marginheight="0" scrolling="no">
</iframe>

<script src="layui/layui.js"></script>
</body>
</html>